import config from "@/config"
import http from "@/utils/request"
import tool from '@/utils/tool';

export default {
    joveeyeConfig:{
        leadingIndustryDynamics:{
            url: `${config.JOVEEYE_URL}/attractApi/industryDevelop/leadingIndustryDynamics`,
            name: "产业动态",
            post: async function (data, config = {}) {
                return await http.postByContentType(this.url, data, {
                    headers: {
                        "Content-Type":"application/json;charset=UTF-8",
                        "Authorization":tool.cookie.get('JOV_TOKEN')
                    }
                });
            }
        },
        getauThorityLogin:{
            url: `${config.JOVEEYE_URL}/authority/login`,
            name: "获取产业链Token",
            post: async function (data, config = {}) {
                return await http.postByContentType(this.url, data, {headers: {'Content-Type': 'application/json;charset=UTF-8'}});
            }
        },
        queryConstructionStrategyIndustry:{
            url: `${config.JOVEEYE_URL}/attractApi/industryChain/queryConstructionStrategyIndustry`,
            name: "强链补链延链-环节",
            post: async function (data, config = {}) {
                return await http.postByContentType(this.url, data, {
                    headers: {
                        "Content-Type":"application/json;charset=UTF-8",
                        "Authorization":tool.cookie.get('JOV_TOKEN')
                    }
                });
            }
        },
        queryConstructionStrategyEnterprise:{
            url: `${config.JOVEEYE_URL}/attractApi/industryChain/queryConstructionStrategyEnterprise`,
            name: "强链补链延链列表",
            post: async function (data, config = {}) {
                return await http.postByContentType(this.url, data, {
                    headers: {
                        "Content-Type":"application/json;charset=UTF-8",
                        "Authorization":tool.cookie.get('JOV_TOKEN')
                    }
                });
            }
        },
        leadingIndustryMap:{
            url: `${config.JOVEEYE_URL}/attractApi/industryDevelop/leadingIndustryMap`,
            name: "产业地图",
            post: async function (data, config = {}) {
                return await http.postByContentType(this.url, data, {
                    headers: {
                        "Content-Type":"application/json;charset=UTF-8",
                        "Authorization":tool.cookie.get('JOV_TOKEN')
                    }
                });
            }
        },
        enterpriseList:{
            url: `${config.JOVEEYE_URL}/attractApi/industryChain/enterpriseList`,
            name: "产业地图-列表",
            post: async function (data, config = {}) {
                return await http.postByContentType(this.url, data, {
                    headers: {
                        "Content-Type":"application/json;charset=UTF-8",
                        "Authorization":tool.cookie.get('JOV_TOKEN')
                    }
                });
            }
        },
        getData:{
            url: `${config.JOVEEYE_URL}/attractApi/companies/getData`,
            name: "公司详情",
            post: async function (data, config = {}) {
                return await http.postByContentType(this.url, data, {
                    headers: {
                        "Content-Type":"application/json;charset=UTF-8",
                        "Authorization":tool.cookie.get('JOV_TOKEN')
                    }
                });
            }
        },
        getCompanyBasic:{
            url: `${config.JOVEEYE_URL}/attractApi/pikaAndDoris/getCompanyBasic`,
            name: "公司详情",
            post: async function (data, config = {}) {
                return await http.postByContentType(this.url, data, {
                    headers: {
                        "Content-Type":"application/json;charset=UTF-8",
                        "Authorization":tool.cookie.get('JOV_TOKEN')
                    }
                });
            }
        },
        recCompanyScore:{
            url: `${config.JOVEEYE_URL}/attractApi/recCompanyScore/getData`,
            name: "公司详情",
            post: async function (data, config = {}) {
                return await http.postByContentType(this.url, data, {
                    headers: {
                        "Content-Type":"application/json;charset=UTF-8",
                        "Authorization":tool.cookie.get('JOV_TOKEN')
                    }
                });
            }
        },
        industryChainDendrogram:{
            url: `${config.JOVEEYE_URL}/attractApi/industryChain/industryChainDendrogram`,
            name: "产业链图",
            post: async function (data, config = {}) {
                return await http.postByContentType(this.url, data, {
                    headers: {
                        "Content-Type":"application/json;charset=UTF-8",
                        "Authorization":tool.cookie.get('JOV_TOKEN')
                    }
                });
            }
        },
        getEnterpriseList:{
            url: `${config.JOVEEYE_URL}/attractApi/industryChain/enterpriseList`,
            name: "企业列表",
            post: async function (data, config = {}) {
                return await http.postByContentType(this.url, data, {
                    headers: {
                        "Content-Type":"application/json;charset=UTF-8",
                        "Authorization":tool.cookie.get('JOV_TOKEN')
                    }
                });
            }
        },
        constructionStrategyList:{
            url: `${config.JOVEEYE_URL}/attractApi/industryChain/constructionStrategyList`,
            name: "企业列表",
            post: async function (data, config = {}) {
                return await http.postByContentType(this.url, data, {
                    headers: {
                        "Content-Type":"application/json;charset=UTF-8",
                        "Authorization":tool.cookie.get('JOV_TOKEN')
                    }
                });
            }
        },
        queryRegisteredCapital:{
            url: `${config.JOVEEYE_URL}/attractApi/industryFeature/queryRegisteredCapital`,
            name: "企业注册资本分布",
            post: async function (data, config = {}) {
                return await http.postByContentType(this.url, data, {
                    headers: {
                        "Content-Type":"application/json;charset=UTF-8",
                        "Authorization":tool.cookie.get('JOV_TOKEN')
                    }
                });
            }
        },
        queryAgeDistribution:{
            url: `${config.JOVEEYE_URL}/attractApi/industryFeature/queryAgeDistribution`,
            name: "企业年龄分布",
            post: async function (data, config = {}) {
                return await http.postByContentType(this.url, data, {
                    headers: {
                        "Content-Type":"application/json;charset=UTF-8",
                        "Authorization":tool.cookie.get('JOV_TOKEN')
                    }
                });
            }
        },
        queryEnterpriseNature:{
            url: `${config.JOVEEYE_URL}/attractApi/industryFeature/queryEnterpriseNature`,
            name: "企业性质分布",
            post: async function (data, config = {}) {
                return await http.postByContentType(this.url, data, {
                    headers: {
                        "Content-Type":"application/json;charset=UTF-8",
                        "Authorization":tool.cookie.get('JOV_TOKEN')
                    }
                });
            }
        },
        queryExcellentEnterprise:{
            url: `${config.JOVEEYE_URL}/attractApi/industryFeature/queryExcellentEnterprise`,
            name: "优质企业数量",
            post: async function (data, config = {}) {
                return await http.postByContentType(this.url, data, {
                    headers: {
                        "Content-Type":"application/json;charset=UTF-8",
                        "Authorization":tool.cookie.get('JOV_TOKEN')
                    }
                });
            }
        },
        
       
    }
        
}